#include "process_exe.h"

process_exe::process_exe()
{

}

process_exe::~process_exe()
{
    close_process();
}

void process_exe::start_process()
{
    if(!isStart)
    {
        isStart=true;
        process.start("caculate_Template");
    }
}

void process_exe::close_process()
{
    if(isStart)
    {
        process.close();
        isStart=false;
    }
}

void process_exe::local_restart()
{
    qDebug()<<"重启计算模块!";
    close_process();
    start_process();
}
